<?php
include_once("include/include.php.inc");
html_header("Support admin");


/*   $backlink=getenv('HTTP_REFERER');*/

   $result = mysql_query( "SELECT * FROM ssts_support" );
          // or die("SELECT Error: ".mysql_error());

           $num_rows = mysql_num_rows($result);

echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n"; 

           print "<TABLE width=\"100%\" bgcolor=\"#336699\" BORDER=\"0\" bordercolor=\"#FFFFFF\"><tr>";
           print "<th width=\"11%\" scope=\"col\"><span class=\"style6\">No.</span></th>";
		   print "<th width=\"32%\" scope=\"col\"><span class=\"style6\">Name</span></th>";
		   print "<th width=\"32%\" scope=\"col\"><span class=\"style6\">Email</span></th>";
		   print "<th width=\"3%\" scope=\"col\">&nbsp;</th>";
		   print "<th width=\"3%\" scope=\"col\">&nbsp;</tr>";

           while ($row = mysql_fetch_assoc($result)){
                 extract($row);
		     	 print "<tr><td> $sup_no</td>";
		     	 print "<td>$sup_name</td>";
		     	 print "<td>$sup_email</td>";
                 print "<td><a href=\"del_support.php?cmd=del&sup_no=$sup_no\"><IMG src=\"css/images/del.gif\"></a></td>";
                 print "<td><a href=\"edit_support.php?cmd=edit&sup_no=$sup_no\"><IMG src=\"css/images/edit.gif\"></a></td></tr>";
                 }
				 
                 print "</table>\n";
                 print "<br>";
                 /*print "<form action=\"?page=add_support.php\" method=\"post\">";*/

echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 
echo "\n";

/*				 
	echo "<br>";			 

echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n"; 

                 print "<table width=\"82%\" height=\"137\" border=\"0\" bordercolor=\"#FFFFFF\" align=\"center\"><tr>";
                 print "<th colspan=\"2\" bgcolor=\"#336699\"><span class=\"style6\">Add Support</span></th></tr><tr>";
                 print "<th width=\"19%\" valign=\"top\" scope=\"col\"></th>";
    			 print "<th width=\"81%\" rowspan=\"3\" align=\"left\" valign=\"top\" scope=\"col\"><form method=\"post\" action=\"add_support.php\">";
				 print "<p align=\"left\">";
				 //print "<input type=\"text\" name=\"mno\" size=\"2\" maxlength=\"2\"><br>";
				 print "<input type=\"text\" name=\"mname\" size=\"50\" maxlength=\"50\"><br><br>";
				 print "<input type=\"text\" name=\"memail\" size=\"50\" maxlength=\"50\"></p><p align=\"left\"><input type=\"submit\" value=\" Add \"></p></form></th></tr>";
				 print "<td valign=\"top\" ><div align=\"left\">Name:</div></td>";
				 print "<tr>";
				 print "<td valign=\"top\" scope=\"col\"><div align=\"left\">Email:</div></td></tr></table>";
print "</form>";

echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 
echo "\n";
  */
html_footer();
?>
